package com.caigou.service;

import com.caigou.bean.cms.entity.FriendshipLink;
import com.caigou.bean.cms.entity.LinkType;
import com.caigou.bean.cms.param.FriendshipLinkParam;
import com.caigou.bean.cms.param.LinkTypeParam;
import com.caigou.util.Result;

import java.util.List;

public interface FriendshipLinkService {
    FriendshipLink selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    List<FriendshipLink> listFriendshipLink();
    int insertSelective(FriendshipLink friendshipLink);
    int updateFriendshipLink(FriendshipLink friendshipLink);

    Result saveFriendshipLink(FriendshipLinkParam param);
    Result updateFriendshipLink(FriendshipLinkParam param);
    Result deleteFriendshipLink(FriendshipLinkParam param);
    Result moveFriendshipLink(FriendshipLinkParam param);
    Result publishFriendshipLink();

    Result saveLinkType(LinkTypeParam param);
    Result deleteLinkType(LinkTypeParam param);
    Result listLinkType(Integer hasLink);
    Result updateLinkType(LinkTypeParam param);
}
